﻿using Siasun.AFC.RtPlatfromGui.IBll.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Siasun.AFC.RtPlatfromGui.IBll.IServer
{
    /// <summary>
    /// 菜单数据服务工厂接口
    /// </summary>
    public interface IMenuDataServer
    {
        /// <summary>
        /// 查询所有菜单
        /// </summary>
        /// <returns></returns>
        List<MenuInfo> QueryAllMenuData();

        /// <summary>
        /// 查询单个菜单
        /// </summary>
        /// <param name="menuId"></param>
        MenuInfo GetMenuData(string menuId);

        /// <summary>
        /// 插入菜单
        /// </summary>
        /// <param name="menuInfo"></param>
        void InsertMenuData(MenuInfo menuInfo);

        /// <summary>
        /// 更新菜单
        /// </summary>
        /// <param name="menuInfo"></param>
        void UpdateMenuData(MenuInfo menuInfo);

        /// <summary>
        /// 删除菜单
        /// </summary>
        /// <param name="menuId"></param>
        void DeleteMenuData(string menuId);

        /// <summary>
        /// 删除菜单及其子节点
        /// </summary>
        /// <param name="parentId"></param>
        void DeleteMenuDataAndAllChild(string parentId);
    }
}
